// 创建仓库
// 01: 引入rtk 并解构出 一个方法 configureStore 方法用来配置store 
import { configureStore } from '@reduxjs/toolkit'

// 导入 两个子模块 = 也就是切片
import userSlicer from './slicers/userSlicer.js'
import goodsSlicer from './slicers/goodsSlicer.js'

const store = configureStore({
    reducer: {
        user: userSlicer.reducer, // user ,goods就是模块名
        goods: goodsSlicer.reducer
    }
})
//05: 导出仓库
export default store
